package neuralNetworks.evolution;

import neuralNetworks.NeuralNetwork;
import neuralNetworks.Neuron;

public class EvolutionNet extends NeuralNetwork<Neuron> implements Comparable<EvolutionNet> {
	private static final long serialVersionUID = -7827715270080708491L;

	double fitness;

	public EvolutionNet() {
	}
	
	public EvolutionNet(Class<Neuron> neuronClass) {
		super(neuronClass);
	}

	public EvolutionNet(EvolutionNet nn) throws InstantiationException, IllegalAccessException {
		super(nn);
	}

	@Override
	public int compareTo(EvolutionNet o) {
		return Double.compare(o.fitness, fitness);
	}
	
	public double getFitness(){
		return fitness;
	}

}
